package com.monkey4cloud.study.webfluxdemo001.service;

import com.monkey4cloud.study.webfluxdemo001.model.Employee;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

public interface EmployeeService {
    Flux<Employee> findAll();

    Mono<Employee> findById(long id);

    Flux<Employee> findByName(String name);

    Mono<Employee> save(Employee employee);

    Mono<Void> update(Employee employee);

    Mono<Void> delete(Employee employee);

    Mono<Void> deleteById(long id);
}
